package com.kll.carolinehmibiz.presentation.listener

import com.kll.carolinehmibiz.net.bean.GetSystemMenuDetailResponse
import com.kll.carolinehmibiz.net.bean.GetSystemMenuResponse

interface SecondaryMenuProtocol {

    interface IView {
        // 加载菜单成功
        fun getSystemMenuSuccessed(menus: ArrayList<GetSystemMenuResponse>)
        // 加载菜单失败
        fun getSystemMenuFailed(code: Int, message: String)
        // 获取二级菜单详情成功
        fun getArticleSuccessed(data: ArrayList<GetSystemMenuDetailResponse>)
        // 获取二级菜单详情失败
        fun getArticleFailed(code: Int, message: String)
    }

    interface IPresenter {
        // 加载菜单
        fun loadSystemMenu(parentId: Int)
        // 获取二级菜单详情
        fun getArticle(menuId: Int)
    }

}